Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRV MultiRewarder Contract #485

Merged
merged 15 commits into from
Mar 6, 2025
Merged

CRV MultiRewarder Contract #485

merged 15 commits into from
Mar 6, 2025

Conversation

ElliotFriedman
Copy link
Collaborator

@ElliotFriedman ElliotFriedman commented Mar 4, 2025

Add CRV MultiRewarder Contract for incentivizing Metamorpho Vault Deposits

Forked from https://github.com/curvefi/multi-rewards/blob/master/contracts/MultiRewards.sol

Diff, should only be formatting changes: https://www.diffchecker.com/nA6Jb3Md/

Copy link

openzeppelin-code bot commented Mar 4, 2025

CRV MultiRewarder Contract

Generated at commit: 99700a5a564027ae4f0e6ed0cebedbb05e172e40

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
4
4
0
12
46
66
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@ElliotFriedman
Copy link
Collaborator Author

We can back the tests and compiler run out of CI once we are satisfied with things to decrease CI times.

@@ -30,6 +30,10 @@ runs:
run: forge compile --contracts proposals/
shell: bash

- name: Compile MultiRewarder
run: forge compile --contracts crv-rewards/
shell: bash
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will be deleted once we pass audit

retry_wait_seconds: 60
timeout_minutes: 20
max_attempts: 3
command: time forge test --match-path test/unit/MultiRewards.t.sol -vvv
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this as well as the tests will be deleted once audit clears

Copy link

github-actions bot commented Mar 4, 2025

Compiling 4 files with Solc 0.8.19
Solc 0.8.19 finished in 8.16ms
Compiler run successful!
Script ran successfully.
Gas used: 37734332

If you wish to simulate on-chain transactions pass a RPC URL.


// ------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------------------
// Simple testing utilities since forge-std minimum solidity version is 0.6.20 and MultiRewards is 0.5.17
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Collaborator

@anajuliabit anajuliabit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests are great, diff looks good as well (only formatting and removing the require function). LGTM!

@anajuliabit
Copy link
Collaborator

@ElliotFriedman ElliotFriedman merged commit 4bdfd89 into main Mar 6, 2025
23 checks passed
@ElliotFriedman ElliotFriedman deleted the feat/curve-multi-rewarder branch March 6, 2025 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants